package com.atguigu.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryBrandRelationEntity;

import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author ls
 * @email 1725248162@qq.com
 * @date 2021-06-30 10:20:10
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存品牌分类关联
     * @param categoryBrandRelation
     */
    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);

    /**
     * 根据 brandId 修改 brandName
     * @param brandId
     * @param brandName
     */
    void updateBrandNameByBrandId(Long brandId, String brandName);

    /**
     * 修改
     * @param catelogId
     * @param categoryName
     */
    void updateCategoryNameByCatelogId(Long catelogId, String categoryName);
}

